import logging

from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to

from sc_console.model.models import ErrorReport, YouTubePartialParse
from sc_console.model.meta import Session

from sc_console.lib.base import BaseController, render

log = logging.getLogger(__name__)

class MainController(BaseController):
    def index(self):
        c.new_errors = Session.query(ErrorReport).count()
        c.new_partial_parses = Session.query(YouTubePartialParse).count()
            
        return render('/main.mako')
